package com.miaoxun.dao;



import com.basemapper.BasicMapper;
import com.miaoxun.dao.provider.DeptProvider;
import com.miaoxun.domain.entity.Dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Component;


/**
 * 部门管理
 *
 * @author ruoshuisixue
 * @email ruoshuisixue@sina.com
 * @date 2017-11-17 14:38:41
 */
@Mapper
@Component
public interface DeptMapper extends BasicMapper<Dept> {


@SelectProvider(type = DeptProvider.class,method = "count")
	int count(Long parentId);

	@SelectProvider(type = DeptProvider.class,method = "checkDeptHasUser")
	int checkDeptHasUser(Long parentId);
}
